//
//  CachedUserDecoratedProvider.h
//  iPhoneMyRailApp
//
//  Created by Christopher Anderson on 01/11/2008.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CachedURLContents.h"
#import "UserDecoratedHTTPRequest.h"
#import "TarPhoneAppDelegate.h"

#import "MPOAuthAPI.h"

@interface CachedXMLReader : NSObject {
	MPOAuthAPI *oauthAPI;
	CachedURLContents *cache;
	UserDecoratedHTTPRequest *requestProvider;
}

- (void) makeRequest:(NSString*)url parameters:(NSArray*)inParameters;
- (NSData*) makeOAuthControlledRequest:(NSString*)url parameters:(NSArray*)inParameters;
- (void)parseXMLData:(NSData *)data parseError:(NSError **)error;


@property (nonatomic, retain) MPOAuthAPI *oauthAPI;
@property (nonatomic, retain) CachedURLContents *cache;
@property (nonatomic, retain) UserDecoratedHTTPRequest *requestProvider;


@end
